package cn.ljl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
//@EnableAutoConfiguration+@ComponentScan
@SpringBootApplication //申明当前类是SpringBoot项目的启动类
//扫描mapper接口，生成mapper接口的代理对象-service中注入使用
@MapperScan("cn.ljl.*.mapper")
@ServletComponentScan(value = "cn.ljl.basic.Listener")
public class App {

    public static void main(String[] args) {
        //使用启动类App 去 运行 Spring项目
        SpringApplication.run(App.class);
    }

}
